package com.lianzhihui.romeex.mvp.presenter;

import android.content.Context;

import com.lianzhihui.romeex.bean.FlowCellBean;
import com.lianzhihui.romeex.mvp.model.FlowCellInterface;
import com.lianzhihui.romeex.mvp.model.FlowCellModelImp;
import com.lianzhihui.romeex.mvp.view.FlowCellView;

/**
 * Description:
 * Author: RAMON
 * CreateDate: 11/30/20 2:13 PM
 * UpdateUser:
 * UpdateDate:
 * UpdateRemark:
 * Version:
 */
public class FlowCellInfoPresenter implements FlowCellInterface {

    Context context;
    FlowCellView iView;
    FlowCellModelImp iModel;

    public FlowCellInfoPresenter(Context context, FlowCellView iView) {
        this.context = context;
        this.iView = iView;
        iModel = new FlowCellModelImp(context, this);
    }

    public void getFLInfo(){
        iModel.getFolwCellInfo();
    }

    @Override
    public void onFLInfo(FlowCellBean bean) {
        iView.onFLInfo(bean);
    }

    @Override
    public void onFLInfoFail(String message) {
        iView.onFLInfoFail(message);
    }

    @Override
    public void onFailure() {

    }
}
